<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" import="java.util.*,com.stx.bean.*"%>
    
    <%@ include file="page/include.jsp" %>
    
    <% 
    //获取博文类型列表信息
    List list=(List)request.getAttribute("blogs");
    
    %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>博文类型</title>
<link rel="stylesheet" type="text/css" href="<%=basePath %>/css/top.css" />
</head>
<body>
    <jsp:include page="page/top.jsp"></jsp:include>
    <table id="showblog" >
      <tr>
     <td>id</td>
     <td>用户id</td>
     <td>标题</td>
     <td>内容</td>
   </tr>
    <%
      for(int i=0;i<list.size();i++){
    	  Blog1 b=(Blog1)list.get(i);
    	  //BlogUser user=(BlogUser)request.getSession().getAttribute("USER");
    	  %>
    	  <tr>
			     <td><%=b.getId() %></td>
			     <td><%=b.getUserid() %></td>
			     <td><%=b.getTitle() %></td>
			     <td><textarea name="content" cols="50" rows="3"/><%=b.getContent() %></textarea></td>
              </tr>
    	  <% 
      }
    
    %>
    </table>
</body>
</html>